﻿using System;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace HRMService
{
    
    [ServiceContract(Namespace = "http://HRMService")]
    public interface ICInterview
    {
        [OperationContract]
        CInterviewInfo CInterview_GetInfo(int CandidateID, int RecruitmentID, int Ordinal);

        [OperationContract]
        int CInterview_Insert(CInterviewInfo eInfo);

        [OperationContract]
        bool CInterview_Update(CInterviewInfo eInfo);

        [OperationContract]
        bool CInterview_Delete(int CInterviewID);

    }
    [DataContract(Namespace = "http://HRMService")]
    public class CInterviewInfo
    {
        #region VARIABLES

        int _ID;
        int _CandidateID;
        int _Ordinal;
        DateTime _Date;
        string _Interviewer;
        int _InterviewerPosition;
        string _OverallComments;
        int _PositionOffer;
        int _DepartmentOffer;
        int _Status;
        int _RecruitmentID;


        #endregion

        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        [DataMember]
        public int CandidateID
        {
            get { return _CandidateID; }
            set { _CandidateID = value; }
        }
        [DataMember]
        public int Ordinal
        {
            get { return _Ordinal; }
            set { _Ordinal = value; }
        }
        [DataMember]
        public DateTime Date
        {
            get { return _Date; }
            set { _Date = value; }
        }
        
        [DataMember]
        public string Interviewer
        {
            get { return _Interviewer; }
            set { _Interviewer = value; }
        }
        [DataMember]
        public int InterviewerPosition
        {
            get { return _InterviewerPosition; }
            set { _InterviewerPosition = value; }
        }
                [DataMember]
        public string OverallComments
        {
            get { return _OverallComments; }
            set { _OverallComments = value; }
        }
        
        [DataMember]
                public int PositionOffer
        {
            get { return _PositionOffer; }
            set { _PositionOffer = value; }
        }
        [DataMember]
        public int DepartmentOffer
        {
            get { return _DepartmentOffer; }
            set { _DepartmentOffer = value; }
        }
        [DataMember]
        public int Status
        {
            get { return _Status; }
            set { _Status = value; }
        }
        [DataMember]
        public int RecruitmentID
        {
            get { return _RecruitmentID; }
            set { _RecruitmentID = value; }
        }
        string _Represent;
        [DataMember]
        public string Represent
        {
            get { return _Represent; }
            set { _Represent = value; }
        }
    }

}
